package com.user.notiy.entity;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class TNotice {
	public static final String UNNEED_NOTICE = "0";													//无需通知
	public static final String NEED_NOTICE = "1";													//需要通知
	public static final String WAIT_NOTICE = "2";													//等待通知
	public static final String NOTIFYING = "3";														//通知中
	public static final String NOTIFY_SUCC = "S";													//生成
	public static final String NOTIFY_FAIL = "E";													//失败
		
	private static final SimpleDateFormat sdfTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	private static final SimpleDateFormat sdfDate = new SimpleDateFormat("yyyyMMdd");
	
	/* 通知信息 */
	private String NoticeType;
	private String NoticeGroup;
	private String NoticeMaxNum;
	private String NoticeID;
	private String NoticeURL;
	private String NoticeState;
	private long NoticeCount;
	private Date LastNoticeTime;
	private String AcqID;
	private String AcqOpenID;
	private String AcqAppID;
	private String InChlID;
	private String InMerID;
	private String InMerOpenID;
	private String InMerAppID;
	private String OutChlID;
	private String OutOrgID;
	private String OutMerID;
	private String OutSubMerID;
	private String UserAccount;
	private String UserOpenID;
	private Date OrderTime;
	private String OrderTitle;
	private String OrderDesc;
	private String InChlOrderID;
	private String InMerOrderID;
	private String OutChlOrderID;
	private String OutMerOrderID;
	private String OutSubMerOrderID;
	private String ProductInfo;
	private String Currency;
	private long PayAmt;
	private long PayFee;
	private long SettleAmt;
	private Date PayTime;
	private Date SettleDate;
	private String PayBank;
	private String RespCode;
	private String RespMsg;
	private String AcqRemark;
	private String PayeeRemark;
	private String PayerRemark;
	private String PayStatus;
	private String Note;
	private String OrderSource;
	private String BusiOrderNo;
	
	
	public String getNoticeGroup() {
		return NoticeGroup;
	}
	public void setNoticeGroup(String noticeGroup) {
		NoticeGroup = noticeGroup;
	}
	public String getNoticeMaxNum() {
		return NoticeMaxNum;
	}
	public void setNoticeMaxNum(String noticeMaxNum) {
		NoticeMaxNum = noticeMaxNum;
	}
	public String getNoticeType() {
		return NoticeType;
	}
	public void setNoticeType(String noticeType) {
		NoticeType = noticeType;
	}
	public String getNoticeID() {
		return NoticeID;
	}
	public void setNoticeID(String noticeID) {
		NoticeID = noticeID;
	}
	public String getNoticeURL() {
		return NoticeURL;
	}
	public void setNoticeURL(String noticeURL) {
		NoticeURL = noticeURL;
	}
	public String getNoticeState() {
		return NoticeState;
	}
	public void setNoticeState(String noticeState) {
		NoticeState = noticeState;
	}
	public long getNoticeCount() {
		return NoticeCount;
	}
	public void setNoticeCount(long noticeCount) {
		NoticeCount = noticeCount;
	}
	public Date getLastNoticeTime() {
		return LastNoticeTime;
	}
	public void setLastNoticeTime(Date lastNoticeTime) {
		LastNoticeTime = lastNoticeTime;
	}
	public String getAcqID() {
		return AcqID;
	}
	public void setAcqID(String acqID) {
		AcqID = acqID;
	}
	public String getAcqOpenID() {
		return AcqOpenID;
	}
	public void setAcqOpenID(String acqOpenID) {
		AcqOpenID = acqOpenID;
	}
	public String getAcqAppID() {
		return AcqAppID;
	}
	public void setAcqAppID(String acqAppID) {
		AcqAppID = acqAppID;
	}
	public String getInChlID() {
		return InChlID;
	}
	public void setInChlID(String inChlID) {
		InChlID = inChlID;
	}
	public String getInMerID() {
		return InMerID;
	}
	public void setInMerID(String inMerID) {
		InMerID = inMerID;
	}
	public String getInMerOpenID() {
		return InMerOpenID;
	}
	public void setInMerOpenID(String inMerOpenID) {
		InMerOpenID = inMerOpenID;
	}
	public String getInMerAppID() {
		return InMerAppID;
	}
	public void setInMerAppID(String inMerAppID) {
		InMerAppID = inMerAppID;
	}
	public String getOutChlID() {
		return OutChlID;
	}
	public void setOutChlID(String outChlID) {
		OutChlID = outChlID;
	}
	public String getOutOrgID() {
		return OutOrgID;
	}
	public void setOutOrgID(String outOrgID) {
		OutOrgID = outOrgID;
	}
	public String getOutMerID() {
		return OutMerID;
	}
	public void setOutMerID(String outMerID) {
		OutMerID = outMerID;
	}
	public String getOutSubMerID() {
		return OutSubMerID;
	}
	public void setOutSubMerID(String outSubMerID) {
		OutSubMerID = outSubMerID;
	}
	public String getUserAccount() {
		return UserAccount;
	}
	public void setUserAccount(String userAccount) {
		UserAccount = userAccount;
	}
	public String getUserOpenID() {
		return UserOpenID;
	}
	public void setUserOpenID(String userOpenID) {
		UserOpenID = userOpenID;
	}
	public Date getOrderTime() {
		return OrderTime;
	}
	public void setOrderTime(Date orderTime) {
		OrderTime = orderTime;
	}
	public String getOrderTitle() {
		return OrderTitle;
	}
	public void setOrderTitle(String orderTitle) {
		OrderTitle = orderTitle;
	}
	public String getOrderDesc() {
		return OrderDesc;
	}
	public void setOrderDesc(String orderDesc) {
		OrderDesc = orderDesc;
	}
	public String getInChlOrderID() {
		return InChlOrderID;
	}
	public void setInChlOrderID(String inChlOrderID) {
		InChlOrderID = inChlOrderID;
	}
	public String getInMerOrderID() {
		return InMerOrderID;
	}
	public void setInMerOrderID(String inMerOrderID) {
		InMerOrderID = inMerOrderID;
	}
	public String getOutChlOrderID() {
		return OutChlOrderID;
	}
	public void setOutChlOrderID(String outChlOrderID) {
		OutChlOrderID = outChlOrderID;
	}
	public String getOutMerOrderID() {
		return OutMerOrderID;
	}
	public void setOutMerOrderID(String outMerOrderID) {
		OutMerOrderID = outMerOrderID;
	}
	public String getOutSubMerOrderID() {
		return OutSubMerOrderID;
	}
	public void setOutSubMerOrderID(String outSubMerOrderID) {
		OutSubMerOrderID = outSubMerOrderID;
	}
	public String getProductInfo() {
		return ProductInfo;
	}
	public void setProductInfo(String productInfo) {
		ProductInfo = productInfo;
	}
	public String getCurrency() {
		return Currency;
	}
	public void setCurrency(String currency) {
		Currency = currency;
	}
	public long getPayAmt() {
		return PayAmt;
	}
	public void setPayAmt(long payAmt) {
		PayAmt = payAmt;
	}
	public long getPayFee() {
		return PayFee;
	}
	public void setPayFee(long payFee) {
		PayFee = payFee;
	}
	public long getSettleAmt() {
		return SettleAmt;
	}
	public void setSettleAmt(long settleAmt) {
		SettleAmt = settleAmt;
	}
	public Date getPayTime() {
		return PayTime;
	}
	public void setPayTime(Date payTime) {
		PayTime = payTime;
	}
	public Date getSettleDate() {
		return SettleDate;
	}
	public void setSettleDate(Date settleDate) {
		SettleDate = settleDate;
	}
	public String getPayBank() {
		return PayBank;
	}
	public void setPayBank(String payBank) {
		PayBank = payBank;
	}
	public String getRespCode() {
		return RespCode;
	}
	public void setRespCode(String respCode) {
		RespCode = respCode;
	}
	public String getRespMsg() {
		return RespMsg;
	}
	public void setRespMsg(String respMsg) {
		RespMsg = respMsg;
	}
	public String getAcqRemark() {
		return AcqRemark;
	}
	public void setAcqRemark(String acqRemark) {
		AcqRemark = acqRemark;
	}
	public String getPayeeRemark() {
		return PayeeRemark;
	}
	public void setPayeeRemark(String payeeRemark) {
		PayeeRemark = payeeRemark;
	}
	public String getPayerRemark() {
		return PayerRemark;
	}
	public void setPayerRemark(String payerRemark) {
		PayerRemark = payerRemark;
	}
	public String getPayStatus() {
		return PayStatus;
	}
	public void setPayStatus(String payStatus) {
		PayStatus = payStatus;
	}
	public String getNote() {
		return Note;
	}
	public void setNote(String note) {
		Note = note;
	}
	public String getOrderSource() {
		return OrderSource;
	}
	public void setOrderSource(String orderSource) {
		OrderSource = orderSource;
	}
	public String getBusiOrderNo() {
		return BusiOrderNo;
	}
	public void setBusiOrderNo(String busiOrderNo) {
		BusiOrderNo = busiOrderNo;
	}
	public Map<String, String> getMap() {
		Map<String, String> map = new HashMap<String, String>();

		if(NoticeID != null)			{	map.put("NoticeID", NoticeID);								};
		if(NoticeURL != null)			{	map.put("NoticeURL", NoticeURL);							};
		if(NoticeState != null)			{	map.put("NoticeState", NoticeState);						};
		if(NoticeCount >= 0)			{	map.put("NoticeCount", String.valueOf(NoticeCount));		};
		if(LastNoticeTime != null)		{	map.put("NoticeCount", sdfTime.format(LastNoticeTime));		};
		if(AcqID != null)				{	map.put("AcqID", AcqID);									};
		if(AcqOpenID != null)			{	map.put("AcqOpenID", AcqOpenID);							};
		if(AcqAppID != null)			{	map.put("AcqAppID", AcqAppID);								};
		if(InChlID != null)				{	map.put("InChlID", InChlID);								};
		if(InMerID != null)				{	map.put("InMerID", InMerID);								};
		if(InMerOpenID != null)			{	map.put("InMerOpenID", InMerOpenID);						};
		if(InMerAppID != null)			{	map.put("InMerAppID", InMerAppID);							};
		if(OutChlID != null)			{	map.put("OutChlID", OutChlID);								};
		if(OutOrgID != null)			{	map.put("OutOrgID", OutOrgID);								};
		if(OutMerID != null)			{	map.put("OutMerID", OutMerID);								};
		if(OutSubMerID != null)			{	map.put("OutSubMerID", OutSubMerID);						};
		if(UserAccount != null)			{	map.put("UserAccount", UserAccount);						};
		if(UserOpenID != null)			{	map.put("UserOpenID", UserOpenID);							};
		if(OrderTime != null)			{	map.put("OrderTime", sdfTime.format(OrderTime));			};
		if(OrderTitle != null)			{	map.put("OrderTitle", OrderTitle);							};
		if(OrderDesc != null)			{	map.put("OrderDesc", OrderDesc);							};
		if(InChlOrderID != null)		{	map.put("InChlOrderID", InChlOrderID);						};
		if(InMerOrderID != null)		{	map.put("InMerOrderID", InMerOrderID);						};
		if(OutChlOrderID != null)		{	map.put("OutChlOrderID", OutChlOrderID);					};
		if(OutMerOrderID != null)		{	map.put("OutMerOrderID", OutMerOrderID);					};
		if(OutSubMerOrderID != null)	{	map.put("OutSubMerOrderID", OutSubMerOrderID);				};
		if(ProductInfo != null)			{	map.put("ProductInfo", ProductInfo);						};
		if(Currency != null)			{	map.put("Currency", Currency);								};
		if(PayAmt >= 0)					{	map.put("PayAmt", String.valueOf(PayAmt));					};
		if(PayFee >= 0)					{	map.put("PayFee", String.valueOf(PayFee));					};
		if(SettleAmt >= 0)				{	map.put("SettleAmt", String.valueOf(SettleAmt));			};
		if(PayTime != null)				{	map.put("PayTime", sdfTime.format(PayTime));				};
		if(SettleDate != null)			{	map.put("SettleDate", sdfDate.format(SettleDate));			};
		if(PayBank != null)				{	map.put("PayBank", PayBank);								};
		if(RespCode != null)			{	map.put("RespCode", RespCode);								};
		if(RespMsg != null)				{	map.put("RespMsg", RespMsg);								};
		if(AcqRemark != null)			{	map.put("AcqRemark", AcqRemark);							};
		if(PayeeRemark != null)			{	map.put("PayeeRemark", PayeeRemark);						};
		if(PayerRemark != null)			{	map.put("PayerRemark", PayerRemark);						};
		if(PayStatus != null)			{	map.put("PayStatus", PayStatus);							};
		if(Note != null)				{	map.put("Note", Note);										};

		if(NoticeType != null)			{	map.put("NoticeType", NoticeType);							};
		if(NoticeGroup != null)			{	map.put("NoticeGroup", NoticeGroup);						};
		if(NoticeMaxNum != null)		{	map.put("NoticeMaxNum", NoticeMaxNum);						};
		
		if(OrderSource != null)			{	map.put("OrderSource", OrderSource);						};
		if(BusiOrderNo != null)			{	map.put("BusiOrderNo", BusiOrderNo);						};
		return map;
	}
}
